Skip to main content

DescribeMetricList

Description

Call the DescribeMetricList interface to query the monitoring data of cloud product time series indicators within the specified time period.

Request Method

POST

Request Path

/apsara/route/cms/DescribeMetricList

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
MetricNameBODYstringYescpu_idlemonitoring item name.
ExpressBODYstringNo{"groupby":["userId","instanceId"]}expression for real-time calculation of queried existing results. Currently only support groupby(similar to database groupby statement).
EndTimeBODYstringNo2019-01-30 00:10:00end time. Supported formats: Unix timestamp: the number of seconds elapsed from January 1, 1970. Format format: YYYY-MM-DDThh:mm:ssZ.
NextTokenBODYstringNo15761485350009dd70bb64cff1f0fff750b08ffff073be5fb1e785e2b020f1a949d5ea14aea7fed82f01dd87311paging cursor ID. description if this parameter is not passed in to indicate that the data on the first page is obtained, this parameter only needs to return to indicate that there is a next page. you can use the returned NextToken as a parameter to request the data on the next page again until null is returned to indicate that all the data has been obtained.
LengthBODYstringNo1000the number of records displayed on each page, used for paging query, the default value is 1000.
regionIdBODYstringYesNo sample value for this parameter.region id
StartTimeBODYstringNo2019-01-30 00:00:00start time. Supported formats: Unix timestamp: the number of seconds elapsed from January 1, 1970. Format format: YYYY-MM-DDThh:mm:ssZ. Description The start and end times execute the left-on-right closed mode, and the startTime cannot be equal to or greater than the endTime.
DimensionsBODYstringNo[{"instanceId": "i-abcdefgh12****"}]dimension map, which is used to query the monitoring data of specified resources. format key-value a collection of key-value pairs, commonly used key-value set as instanceId:XXXXXX. key and value has a length of 1~64 bytes, intercept the first 64 bytes when it exceeds 64 bytes. key and value can include letters, numbers, dots (.), hyphens (-), underscores (_), forward slashes (/), and backslashes (\). description Dimensions when passing in, a JSON string must be used to represent the Map object and must be passed in sequentially.
PeriodBODYstringNo60time interval, in seconds. The values are generally 60(1 minute), 300(5 minutes), and 900(15 minutes). Description Please set this parameter as needed. For example, if the Period is set to 60 when querying the range of one day, 1000 pieces of data are returned (the actual 1440 exists, because the maximum return value does not exceed 1000, only the first 1000 pieces are returned). If Period is used as a 300, 288 pieces of data are returned.
versionBODYstringNo2016-01-01version of api
NamespaceBODYstringYesacs_ecs_dashboardThe data namespace of the product is used to distinguish different products. Naming method: acs_product name.

Return data

NameTypeSample valueDescription
RequestIdstringNo sample value for this parameter.request ID.
NextTokenstringNo sample value for this parameter.paging cursor ID. description if this parameter is not passed in to indicate that the data on the first page is obtained, this parameter only needs to return to indicate that there is a next page. you can use the returned NextToken as a parameter to request the data on the next page again until null is returned to indicate that all the data has been obtained.
MessagestringNo sample value for this parameter.error message.
PeriodstringNo sample value for this parameter.Time interval, in seconds. The values are 60, 300 and 900.
DatapointsstringNo sample value for this parameter.monitoring data list.
CodestringNo sample value for this parameter.status code. description status code 200 indicates success.
SuccessbooleanNo sample value for this parameter.whether the request was successful.

Example

Successful Response example

"The successful response sample is not recognizable. Please modify API definition in API gateway before re-create the API document."

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}